//
//  UnLineTextField.m
//  GodCoin
//
//  Created by Bishen on 2018/6/4.
//  Copyright © 2018年 xiaohan. All rights reserved.
//

#import "UnLineTextField.h"

@implementation UnLineTextField

- (void)layoutSubviews{
    [super layoutSubviews];
    self.line.frame = CGRectMake(0, self.frame.size.height-0.5, self.frame.size.width, 0.5);
//    [self setValue:kPlaceholderColor forKeyPath:@"_placeholderLabel.textColor"];
}

- (CALayer*)line{
    if (!_line) {
        _line = [[CALayer alloc] init];
        [self.layer addSublayer:_line];
        _line.backgroundColor = UIColorHex(#C7C7CC).CGColor;
    }
    return _line;
}
@end
